<!DOCTYPE html>
<html>

<head>
    <title>预防针后台管理</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <style>

    </style>
</head>

<!-- 导航栏 -->
<nav class="navbar navbar-expand-md bg-dark navbar-dark fixed-top">
    <a class="navbar-brand" href="#">儿童预防针预约系统管理平台-{$Think.session.hospital_name}端</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
        <span class="navbar-toggler-icon"></span>
    </button>
    <div class="collapse navbar-collapse" id="collapsibleNavbar">
        <ul class="navbar-nav">
            <!-- <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="#">Link</a>
      </li>     -->
        </ul>
    </div>
</nav>
<br>
<!-- 导航栏end -->
<!-- 内容 -->
<div class="container-fluid" style="height: 80vh;margin-top: 60px;">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group aa " style="overflow:auto;">
                <a href="{:url('adminhos/index')}" class="list-group-item list-group-item-action">预约单管理</a>
                <a href="{:url('adminhos/date')}" class="list-group-item list-group-item-action">预约日期管理</a>
                <a href="{:url('adminhos/updatepw')}" class="list-group-item list-group-item-action">修改密码</a>
            </div>
            <a href="{:url('index/logout')}" class="btn btn-danger" style="width: 100%;margin-top: 20px;"
                role="button">注销</a>
        </div>
        <div class="col-md-10">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="index.html">首页</a></li>
                <li class="breadcrumb-item active">预约列表</li>
            </ol>
            <div class="card">
                <!-- Nav tabs -->
                <ul class="nav nav-tabs" role="tablist">
                    <li class="nav-item">
                        <a class="nav-link active" data-toggle="tab" href="#home">待审核</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#menu1">已打针</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" data-toggle="tab" href="#menu2">全部</a>
                    </li>
                </ul>

                <!-- Tab panes -->
                <div class="tab-content">
                    <div id="home" class="container tab-pane active"><br>
                        <!-- 表格 -->
                        <div class="row" style="height: 600px;overflow:auto; margin: 0px 10px;">
                            <table class="table table-bordered" style="table-layout:fixed;
                  word-break:break-all;
                  word-wrap:break-word;
                  border-collapse:collapse;
                  margin:0 0;
                  padding:0;">
                                <thead>
                                    <tr>
                                        <th>孩子姓名</th>
                                        <th>预防针类型</th>
                                        <th>家长姓名</th>
                                        <th>预约日期</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="res1" id="vo"}
                                    <tr>
                                        <td>{$vo.child_name}</td>
                                        <td>{$vo.vaccine_effect}</td>
                                        <td>{$vo.child_patriarch_name}</td>
                                        <td>{$vo.begin_time}</td>

                                        <td>
                                            <button type="button" class="btn btn-primary dropdown-toggle"
                                                data-toggle="dropdown">
                                                操作
                                            </button>
                                            <div class="dropdown-menu">
                                                <a class="dropdown-item"
                                                    href="{:url('adminhos/pass',['appointment_id'=>$vo.appointment_id])}">通过</a>
                                                <!-- <a class="dropdown-item" href="#">删除</a> -->
                                            </div>
                                        </td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div id="menu1" class="container tab-pane fade"><br>
                        <!-- 表格 -->
                        <div class="row" style="height: 600px;overflow:auto; margin: 0px 10px;">
                            <table class="table table-bordered" style="table-layout:fixed;
                                  word-break:break-all;
                                  word-wrap:break-word;
                                  border-collapse:collapse;
                                  margin:0 0;
                                  padding:0;">
                                <thead>
                                    <tr>
                                        <th>孩子姓名</th>
                                        <th>预防针类型</th>
                                        <th>家长姓名</th>
                                        <th>预约日期</th>
                                        <!-- <th>操作</th> -->
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="res2" id="vo"}
                                    <tr>
                                        <td>{$vo.child_name}</td>
                                        <td>{$vo.vaccine_effect}</td>
                                        <td>{$vo.child_patriarch_name}</td>
                                        <td>{$vo.begin_time}</td>


                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                    <div id="menu2" class="container tab-pane fade"><br>
                        <!-- 表格 -->
                        <div class="row" style="height: 600px;overflow:auto; margin: 0px 10px;">
                            <table class="table table-bordered" style="table-layout:fixed;
                                  word-break:break-all;
                                  word-wrap:break-word;
                                  border-collapse:collapse;
                                  margin:0 0;
                                  padding:0;">
                                <thead>
                                    <tr>
                                        <th>孩子姓名</th>
                                        <th>预防针类型</th>
                                        <th>家长姓名</th>
                                        <th>预约日期</th>
                                        <!-- <th>操作</th> -->
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="res4" id="vo"}
                                    <tr>
                                        <td>{$vo.child_name}</td>
                                        <td>{$vo.vaccine_effect}</td>
                                        <td>{$vo.child_patriarch_name}</td>
                                        <td>{$vo.begin_time}</td>
                                    </tr>
                                    {/volist}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>


            </div>
        </div>
    </div>
</div>

<!-- 内容end -->

<!-- 底部  -->
<div class="jumbotron text-center" style="margin-bottom:0">
    <p>@2020-tch</p>
</div>

<!-- 底部end  -->
</body>

</html>